package com.sinai.mshab.data.gwtwidgets;

import com.google.gwt.user.client.ui.TextBoxBase;
import com.sinai.mshab.data.DataManager;

/**
 * A concrete implementation of {@link DataManager} for GWT {@link TextBoxBase}
 * widgets.
 * 
 * @author Arthur Kalmenson
 */
public class TextBoxBaseDataManager implements DataManager<TextBoxBase, String> {

	public String getData(TextBoxBase widget) {
		return widget.getText();
	}

	public void setData(TextBoxBase widget, String data) {
		widget.setText(data);
	}
}
